﻿using System.Web;
using System.Web.Optimization;
using DonutMgmtSystemFoundation.Helpers;

namespace DonutMgmtSystemFoundation
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/javascript/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/javascript/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/javascript/jquery.unobtrusive*",
                        "~/javascript/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/javascript/modernizr-*"));

            bundles.Add(new StyleBundle("~/bundles/semantic").Include(
                "~/css/semantic.css"));
            bundles.Add(new StyleBundle("~/bundles/jqueryui").Include(
                "~/css/jquery-ui-1.10.4.custom.min.css"));
            bundles.Add(new StyleBundle("~/bundles/jqGridStyles").Include(
                            "~/css/ui.jqgrid.css"));

            bundles.Add(new ScriptBundle("~/bundles/semanticUI").Include(
                "~/javascript/semantic.js",
                "~/javascript/jquery-1.10.2.js"));
            bundles.Add(new ScriptBundle("~/bundles/jquery-ui").Include(
                "~/javascript/jquery-ui-1.10.4.custom.min.js"));
            bundles.Add(new ScriptBundle("~/bundles/jqGridScripts").Include(
                "~/javascript/jquery.jqGrid.src.js"));

        }
    }
}